package org.nanfang.Yield.SetPriority;

import org.Thread.Threadyield;

public class MainSetPriority {
    public static void main(String[] args) {
        Threadyield mt = new Threadyield("线程一");
        Threadyield mt1 = new Threadyield("线程二");
        mt.setPriority(SetPriority.MAX_PRIORITY);
        mt.setPriority(SetPriority.MIN_PRIORITY);

        mt.start();
        mt1.start();
    }
}
